import request from '@/utils/request'

export function add(data) {
  return request({
    url: 'api/deviceMain',
    method: 'post',
    data ,
    headers: { 'Content-Type': 'multipart/form-data;charset=utf-8' }
  })
}

export function del(ids) {
  return request({
    url: 'api/deviceMain/',
    method: 'delete',
    data: ids
  })
}

export function edit(data) {
  return request({
    url: 'api/deviceMain',
    method: 'put',
    data ,
    headers: { 'Content-Type': 'multipart/form-data;charset=utf-8' }
  })
}

export default { add, edit, del }
